<!--网址列表-->
<form id="info_form" action="" method="post" enctype="multipart/form-data">
    <div class="pad_lr_10" style="height:400px;">
        <div class="col_tab">
            <ul class="J_tabs tab_but cu_li">
                <li class="current">网址列表</li>
            </ul>
            <div class="J_panes" style="height:400px;">
                <div class="content_list pad_10">
                    <div class="content pad-10" id="show_div_1" style="height:auto">
                        <?php foreach ($url as $key=>$val):?>
                        <?php echo $val['title']?><br>
                        <div style="float:right"><a href="javascript:void(0)" onclick="show_content('<?php echo urlencode($val['url'])?>',{$nodeid})"><span>查看</span></a></div><?php echo $val['url']?>
                        <hr size="1" />
                        <?php endforeach;?>
                    </div>
                </div>
                <div id="testcontent"></div>
            </div>
        </div>
    </div>
</form>
<script>
    function show_content(url,nodeid){
        var urls = "{:url('publicTestContent')}";

        var param = {
            'nodeid' : nodeid,
            'url' : url
        };
        var d = $.dialog({
            id:'showcontent',
            title:'查看内容',
            width:500,
            height:500,
            padding:'',
            lock:true,
            fixed:true,
            zIndex:10000,
            ok:function(){

            },
            cancel:function(){}
        });
        $.get(urls,param, function(result){
           // if(result.status == 1){
                $.dialog.get('showcontent').content('<textarea  rows="26" cols="90">'+result+'</textarea>');
           // }else{
           //     $.dialog.get('showcontent').content(result.msg);
           // }
        });
    }
</script>
